import { NgModule, ErrorHandler } from '@angular/core';
import { HTTP_INTERCEPTORS } from '@angular/common/http';

import { Storage } from './storage';
import { Events } from './events';
import { ErrorHandlerNew } from './error-handler';
import { NoopInterceptor } from './noop-interceptor';


@NgModule({
  providers:[
    Storage,
    Events,
    NoopInterceptor,
    ErrorHandlerNew,
    {
      provide:ErrorHandler,
      useClass:ErrorHandlerNew
    },
    {
      provide:HTTP_INTERCEPTORS,
      useClass:NoopInterceptor,
      multi:true
    }
  ]
})


export class CoreModule{}